package routers

import "gvb_server/api"

func (routerGroup RouterGroup) AdvertsRouter() {
	advertApi := api.ApiGroupApp.AdvertApi
	routerGroup.POST("/adverts", advertApi.AdvertCreateView)
	routerGroup.GET("/adverts", advertApi.AdvertListView)
	routerGroup.PUT("/adverts/:id", advertApi.AdvertUpdateView)
	routerGroup.DELETE("/adverts", advertApi.AdvertRemoveView)
}
